package cn.xaut.ocr3.service;


import cn.xaut.ocr3.dto.IdCard;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

/**
 * @author dgl
 */
public interface RapidOcrPlusService {
    /**
     * 识别图片
     *
     * @param file
     * @return
     * @throws IOException
     */
    String recognizeImage(MultipartFile file) throws IOException, InterruptedException;

    IdCard recognizeID(MultipartFile frontFile, MultipartFile backFile) throws IOException, InterruptedException;

    String recognizePDF(MultipartFile file) throws IOException;

    Object recognizeBankCard(MultipartFile file) throws IOException, InterruptedException;
}
